package com.zh.elec.service.impl;

import java.util.List;

import com.zh.elec.dao.ProductPriceRecordDao;
import com.zh.elec.model.ProductPriceRecord;
import com.zh.elec.service.ProductPriceRecordService;

/**
 * 商品价格记录表
 * @author scy
 *
 */
public class ProductPriceRecordServiceImpl implements ProductPriceRecordService {
 
	private ProductPriceRecordDao productPriceRecordDao;
	@Override
	public Object save(ProductPriceRecord obj) {
		return productPriceRecordDao.save(obj);
	}

	@Override
	public Object update(ProductPriceRecord obj) {
		return productPriceRecordDao.update(obj);
	}

	@Override
	public Object getObjById(ProductPriceRecord obj) {
		return productPriceRecordDao.getObjById(obj);
	}

	@Override
	public Object del(ProductPriceRecord obj) {
		return productPriceRecordDao.del(obj);
	}

	@Override
	public List<ProductPriceRecord> find(String hql) {
		return productPriceRecordDao.findByHql(hql);
	}

	@Override
	public List<ProductPriceRecord> findByName(String name, Object value) {
		return productPriceRecordDao.findByName(name, value);
	}
	@Override
	public List<ProductPriceRecord> findAll() {
		return productPriceRecordDao.findAll();
	}
	public ProductPriceRecordDao getProductPriceRecordDao() {
		return productPriceRecordDao;
	}

	public void setProductPriceRecordDao(ProductPriceRecordDao productPriceRecordDao) {
		this.productPriceRecordDao = productPriceRecordDao;
	}
}
